<%@ page language="java" import="java.util.*,java.text.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML>
<html>
  <head>
    <title>My JSP 'showdate.jsp' starting page</title>

	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	--> 
  </head>
  
  <body>
  <%@include file="checkLogin.jsp" %>
    This is my JSP page. <br>
    <%!
    //记录jsp被访问的次数
    	private int visit=0;
    	public double add(double a,double b){
    		return a+b;
    	}
     %>
    <%
    	int u=222;
    	out.println("已经登录了");
    	SimpleDateFormat df=new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
    	Date d=new Date();
    	String str=df.format(d);
    	//out.print(str);
    	double d2=add(Math.random(),Math.random());
     %>
     <%=str%>
     <br/>
     <%=d2%>
   <%--   <p>
     版权所有！
     </p> --%>
  </body>
</html>
